Skip to content

Conversation

@bsunderhus
Copy link
Contributor

Previous Behavior

Current behaviour makes it harder to introduce new properties to items provided to useFlatTree which might be cumbersome on some scenarios, as lazy loading

New Behavior

Refactors hooks to ensure generic properties are passed down the line, allowing modification of the end type that'll be available by getTreeItemProps

@size-auditor
Copy link

size-auditor bot commented Apr 25, 2023

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: cbe5229d974dc11d345729a110b7493564a0b822 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 25, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 698 707 5000
Button mount 366 368 5000
Field mount 1269 1259 5000
FluentProvider mount 877 866 5000
FluentProviderWithTheme mount 117 116 10
FluentProviderWithTheme virtual-rerender 93 100 10
FluentProviderWithTheme virtual-rerender-with-unmount 110 98 10
InfoButton mount 23 23 5000
MakeStyles mount 1118 1119 50000
Persona mount 2007 1945 5000
SpinButton mount 1549 1554 5000

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 25, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit d19c413:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 25, 2023

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Button, FluentProvider & webLightTheme
65.31 kB
17.931 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
204.498 kB
57.184 kB
react-components
react-components: FluentProvider & webLightTheme
36.086 kB
11.9 kB
react-portal-compat
PortalCompatProvider
6.446 kB
2.186 kB
🤖 This report was generated against cbe5229d974dc11d345729a110b7493564a0b822

@bsunderhus bsunderhus marked this pull request as ready for review April 25, 2023 11:47
@bsunderhus bsunderhus requested a review from a team as a code owner April 25, 2023 11:47
@bsunderhus bsunderhus force-pushed the react-tree/feat--makes-useFlatTree-generic branch from 6293303 to 6dbebd2 Compare April 25, 2023 12:16
@bsunderhus bsunderhus merged commit 53c5190 into microsoft:master Apr 26, 2023
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Apr 27, 2023
* master:
  chore: enforce files naming to use .styles.ts [cxe-prg files] (microsoft#27707)
  chore: migrate to NodeJS v16 (microsoft#27711)
  remove react-avatar-context package (microsoft#27709)
  test: migrate all v9 libraries to use new conformance setup which improves test execution by approx 46% (microsoft#27669)
  chore: Add caret to react-datepicker-compat dependencies (microsoft#27671)
  test(fluentui/react): fix initial global leaks that were causing OOM issues (microsoft#27661)
  chore(react-utilities): simplifies useControllableState hook internals (microsoft#27702)
  chore: enforce files naming to use .styles.ts (microsoft#27698)
  feat: adds lazy loading example (microsoft#27587)
  feat: react-combobox space conditionally inserts character when freeform is true (microsoft#27025)
  chore(react-tree): updates useOpenItemsState internals (microsoft#27697)
  feat(tools): add conformance setup migration to migrate-converged-pkg generator (microsoft#27668)
  test: use `isolatedModules` for all ts-jest configs to lower memory footprint on CI (microsoft#27670)
  chore: bump @griffel/eslint-plugin & enable @griffel/hook-naming (microsoft#27687)
  feat(react-tree): makes useFlatTree generic (microsoft#27682)
  Enable export to codepen for charting library (microsoft#27539)
  Overflow: added useOverflowCount to exports (microsoft#27678)
  fix: Menu should not steal focus on re-render (microsoft#27688)
  feat(react-conformance): add new TS config api to be able to specify configName and configDir (microsoft#27664)
@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/[email protected] has been released which incorporates this pull request.:tada:

Handy links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants